package com.yuanfud.blog.mapper;

import com.yuanfud.blog.VO.NewsVO;
import com.yuanfud.entity.blog.ArticleList;
import com.yuanfud.entity.common.MasterPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ArticleMapper {
    List<NewsVO> getAllNews(MasterPage page);

    String getNewsTypeById(@Param("id") Integer id);

    List<Map<Integer,String>> getNewsTypeListByFatherId(@Param("fatherId") Integer fatherId);

    Integer addNewsInfo(@Param("news") NewsVO news);

    ArticleList getNewsInfoById(@Param("id")int id);

    Integer updateNewsInfo(@Param("news") NewsVO news);
}
